<%@ page import="com.situ.web.entity.Student" %><%--
  Created by IntelliJ IDEA.
  User: 24186
  Date: 2022-01-29
  Time: 19:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/JavaWeb/static/bootstrap-3.4.1-dist/css/bootstrap.css"/>
</head>
<body>
    <%
        Student student = (Student) request.getAttribute("student");
    %>
    <form class="form-horizontal" action="<%=request.getContextPath()%>/student?method=update" method="post">
        <input type="hidden" name="id" value="<%=student.getId()%>"/>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name" placeholder="name" value="<%=student.getName()%>">
            </div>
        </div>
        <div class="form-group">
            <label for="age" class="col-sm-2 control-label">年龄</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="age" name="age" placeholder="age" value="<%=student.getAge()%>">
            </div>
        </div>
        <div class="form-group">
            <label for="gender" class="col-sm-2 control-label">gender</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id=gender name="gender" placeholder="gender" value="<%=student.getGender()%>">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success">修改</button>
            </div>
        </div>
    </form>
</body>
</html>
